<div>
    <h2 data-translate="milkbeeApp.card.home.title">Cards</h2>
    <jhi-alert></jhi-alert>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
            </thead>
            <tbody>
                <tr ng-repeat="card in vm.cards track by card.id">
                    <td><a ui-sref="pubcardcoments({cardId:card.id,cardTitle:card.title,categoryId:card.categoryId})" >{{card.title}}</a></td>
                    <td><img class="img-circle" width="40px" height="40px" src="/content/content/images/avatar/{{card.userId}}.png" />{{card.author}}</td>
                    <td>{{card.createdAt | date:'medium'}}</td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
